package com.socialuni.sdk.api;

import com.socialuni.sdk.api.model.ResultRO;
import com.socialuni.sdk.model.RO.SocialOAuthUserRO;
import com.socialuni.sdk.model.RO.UniLoginRO;
import com.socialuni.sdk.model.QO.MockQO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("socialuni/mock")
@FeignClient(name = "mock", url = "${social.server-url:https://api.socialuni.com}")
public interface MockAPI extends FeignAPI {

    @PostMapping("mockOAuthUserInfo")
    ResultRO<UniLoginRO<SocialOAuthUserRO>> mockOAuthUserInfo(@RequestBody MockQO mockQO);


    @PostMapping("mockOAuthUserPhoneNum")
    ResultRO<UniLoginRO<SocialOAuthUserRO>> mockOAuthUserPhoneNum(@RequestBody MockQO mockQO);
}